/*Copyright Epic Games, Inc. All Rights Reserved.*/

:root {
	/*Using colour scheme https://color.adobe.com/TD-Colors---Option-3-color-theme-10394433/*/
	--colour1: #2b3a42;
	--colour2: #3f5765;
	--colour3: #bdd4de;
	--colour4: #efefef;
	--colour5: #ff5035;

	--buttonFont: Helvetica;
	--inputFont: Helvetica;
}

body {
	margin: 0px;
	padding: 0;
}

#playerUI {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	overflow: hidden;
}

#playerUI canvas {
	image-rendering: crisp-edges;
	position: absolute;
}

#playerUI video {
	position: absolute;
	width: 100%;
	height: 100%;
}

#player {
	height: 100%;
	height: 100%;
	position: relative;
	background-color: #1b1b1b;
}

#qualityStatus {
	float: left;
	font-size: 37px;
	padding-right: 4px;
}

#overlaySettings {
	width: 400px;
	display: none;
}

.greyStatus {
	color: grey;
}

.limeStatus {
	color: lime;
}

.orangeStatus {
	color: orange;
}

.redStatus {
	color: red;
}

#videoMessageOverlay {
	z-index: 20;
	color: var(--colour4);
	font-size: 1.8em;
	position: absolute;
	margin: auto;
	font-family: var(--inputFont);
	width: 100%;
}

#videoPlayOverlay {
	z-index: 30;
	position: absolute;
	color: var(--colour4);
	font-size: 1.8em;
	font-family: var(--inputFont);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1b1b1b;
}

/* State for element to be clickable */
.clickableState {
	align-items: center;
	justify-content: center;
	display: flex;
	cursor: pointer;
}

/* State for element to show text, this is for informational use*/
.textDisplayState {
	display: flex;
}

/* State to hide overlay, WebRTC communication is in progress and or is playing */
.hiddenState {
	display: none !important;
}

#playButton {
	display: inline-block;
	height: auto;
}

img#playButton {
	max-width: 241px;
	width: 10%;
}

#UIInteraction {
	position: fixed;
}

#UIInteractionButtonBoundary {
	padding: 2px;
}

#UIInteractionButton {
	cursor: pointer;
}

#hiddenInput {
	position: absolute;
	left: -10%; /* Although invisible, push off-screen to prevent user interaction. */
	width: 0px;
	opacity: 0;
}

#editTextButton {
	position: absolute;
	height: 40px;
	width: 40px;
}

.settings-text {
	color: var(--colour4);
	vertical-align: middle;
	font-size: 18px;
	font-weight: normal;
	display: inline-block;
}

.overlay-button {
	line-height: 1.1;
	padding: 1px 6px;
}

.btn-overlay {
	float: right;
	vertical-align: middle;
	display: inline-block;
}

.btn-flat {
	background: var(--colour4);
	border: 2px solid var(--colour5);
	font-weight: bold;
	cursor: pointer;
	font-family: var(--buttonFont);
	font-size: 10px;
	color: var(--colour5);
	border-radius: 5px;
	height: 20px;
}

.btn-flat:disabled {
	background: var(--colour4);
	border-color: var(--colour3);
	color: var(--colour3);
	cursor: default;
}

.btn-flat:active {
	border-color: var(--colour2);
	color: var(--colour2);
}

.btn-flat:focus {
	outline: none;
}
/*** Toggle Switch styles ***/
.tgl-switch {
	float: right;
	vertical-align: middle;
	display: inline-block;
}

.tgl-switch .tgl {
	display: none;
}

.tgl,
.tgl:after,
.tgl:before,
.tgl *,
.tgl *:after,
.tgl *:before,
.tgl + .tgl-slider {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
.tgl::-moz-selection,
.tgl:after::-moz-selection,
.tgl:before::-moz-selection,
.tgl *::-moz-selection,
.tgl *:after::-moz-selection,
.tgl *:before::-moz-selection,
.tgl + .tgl-slider::-moz-selection {
	background: none;
}
.tgl::selection,
.tgl:after::selection,
.tgl:before::selection,
.tgl *::selection,
.tgl *:after::selection,
.tgl *:before::selection,
.tgl + .tgl-slider::selection {
	background: none;
}

.tgl-slider {
	float: right;
}

.tgl + .tgl-slider {
	outline: 0;
	display: block;
	width: 40px;
	height: 18px;
	position: relative;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.tgl + .tgl-slider:after,
.tgl + .tgl-slider:before {
	position: relative;
	display: block;
	content: "";
	width: 50%;
	height: 100%;
}
.tgl + .tgl-slider:after {
	left: 0;
}
.tgl + .tgl-slider:before {
	display: none;
}

.tgl-flat + .tgl-slider {
	padding: 2px;
	-webkit-transition: all 0.2s ease;
	transition: all 0.2s ease;
	background: #fff;
	border: 3px solid var(--colour4);
	border-radius: 2em;
}

.tgl-flat + .tgl-slider:after {
	-webkit-transition: all 0.2s ease;
	transition: all 0.2s ease;
	background: var(--colour4);
	content: "";
	border-radius: 1em;
}

.tgl-flat:checked + .tgl-slider {
	border: 3px solid var(--colour5);
}

.tgl-flat:checked + .tgl-slider:after {
	left: 50%;
	background: var(--colour5);
}
/*** Toggle Switch styles ***/

#encoderSettings,
#webRTCSettings {
	margin: 10px 0px;
}

#encoderParamsContainer,
#webrtcParamsContainer {
	padding-left: 5%;
}

#encoder-params-submit {
	float: right;
}

#webrtc-params-submit {
	float: right;
}

.form-group {
	display: grid;
	grid-template-columns: 50% 50%;
}

.form-group label {
	color: var(--colour4);
	vertical-align: middle;
	font-size: 18px;
	font-weight: normal;
}

#latencyTest {
	display: block;
}

#latencyTest button {
	margin: 30px 0px;
}

#freezeFrameOverlay {
	background-color: transparent;
}

.freezeframeBackground {
	background-color: #000 !important;
}
